<?php
$this->language->load('METROPOLITEN_custom/METROPOLITEN');
$text_toggle = $this->language->get('text_toggle');
$text_question = $this->language->get('text_question');
$text_facebook = $this->language->get('text_facebook');
$text_twitter = $this->language->get('text_twitter');
$text_payment = $this->language->get('text_payment');
$text_skype_click = $this->language->get('text_skype_click');
$text_hours = $this->language->get('text_hours');
$text_map_get_directions = $this->language->get('text_map_get_directions');
$text_map_route = $this->language->get('text_map_route');
$text_map_address = $this->language->get('text_map_address');
?>
<?php echo $header; ?>


<div class="title-holder">
<div class="inner">
<div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
<h1 class="heading_title"><span><?php echo $heading_title; ?></span></h1>  
</div>
</div>
<?php echo $content_top_fullwidth; ?>



<div id="content_wrap" class="inner main_inner"> <?php echo $column_left; ?><?php echo $column_right; ?>
  <div id="content">
  <div id="content_sections">
  <?php echo $content_top_two_third; ?>
<?php echo $content_top_one_third_last; ?>
<div class="clear"></div>
</div>
<?php echo $content_top; ?>
  <?php if(($this->config->get('METROPOLITENControl_map_status') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
  <div class="google-maps">
    <div id="map_canvas" style="width:100%; height:440px"></div>
    <div class="directions_holder">
    <h4><i class="icon-map-marker"></i><?php echo $text_map_get_directions; ?></h4>
      <p><?php echo $text_map_route; ?></p>
      <form id="gmap" action="" onSubmit="calcRoute();return false;" id="routeForm" align="right">
      <input type="text" id="routeStart" value="" placeholder="<?php echo $text_map_address; ?>" style="margin-top:3px"><br /><br />
      <input type="submit" value="Calculate route" class="button" onclick="calcRoute();return false;"  />
      </form>
    </div>
  </div>
  <?php } ?>
  
  
  
  
  
  <?php
      $METROPOLITENControl_custom_contact = $this->config->get('METROPOLITENControl_custom_contact' . $this->config->get('config_language_id'));
      ?>
  <?php if(($METROPOLITENControl_custom_contact != null) && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
  
  <div class="content-contact">
  <?php echo html_entity_decode($METROPOLITENControl_custom_contact); ?>
  </div>
  <?php } ?> 
  
   
   
    
      <div class="contact-info one_third">
        <div class="content">
          <div><span class="address"><i class="icon-map-marker"></i><?php echo $text_address; ?></span><br />
            <span style="line-height:24px;">
            <?php echo $address; ?></span> </div>
          <div>
            <?php if ($telephone) { ?>
            <span class="phone"><i class="icon-phone"></i><?php echo $text_telephone; ?></span><br />
            <?php echo $telephone; ?><br />
            <?php } ?>
          </div>
          <div>
            <?php if ($fax) { ?>
            <span class="fax"><i class="icon-print"></i><?php echo $text_fax; ?></span><br />
            <?php echo $fax; ?>
            <?php } ?>
          </div>
          <div class="clear"></div>
        </div>
      </div>
      <div class="last two_third">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
      <h2 class="heading_title"><span><?php echo $text_contact; ?></span></h2>
      <div class="clear"></div>
      <div class="content"> <b><?php echo $entry_name; ?></b><br />
        <input type="text" name="name" value="<?php echo $name; ?>" />
        <br />
        <?php if ($error_name) { ?>
        <span class="error"><?php echo $error_name; ?></span>
        <?php } ?>
        <br />
        <b><?php echo $entry_email; ?></b><br />
        <input type="text" name="email" value="<?php echo $email; ?>" />
        <br />
        <?php if ($error_email) { ?>
        <span class="error"><?php echo $error_email; ?></span>
        <?php } ?>
        <br />
        <b><?php echo $entry_enquiry; ?></b><br />
        <textarea name="enquiry" cols="40" rows="10" style="width: 99%;"><?php echo $enquiry; ?></textarea>
        <br />
        <?php if ($error_enquiry) { ?>
        <span class="error"><?php echo $error_enquiry; ?></span>
        <?php } ?>
        <br />
        <b><?php echo $entry_captcha; ?></b><br />
        <input type="text" name="captcha" value="<?php echo $captcha; ?>" />
        <br />
        <br />
        <img src="index.php?route=information/contact/captcha" alt="" />
        <?php if ($error_captcha) { ?>
        <span class="error"><?php echo $error_captcha; ?></span>
        <?php } ?>
      </div>
      <div class="buttons">
        <div class="right">
          <input type="submit" value="<?php echo $button_continue; ?>" class="button" />
        </div>
      </div>
    </form>
    </div>
    <?php echo $content_bottom; ?>
    </div>
    <div class="clear"></div>
</div>
<?php echo $content_bottom_fullwidth; ?>
<?php echo $footer; ?> 
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<?php if(($this->config->get('METROPOLITENControl_map_status') == '1') && ($this->config->get('METROPOLITENControl_status') == '1')) { ?>
<?php include(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/map.php'); ?> 
<?php } ?>